import {
  playMode,
} from '@/assets/js/config.js'
import {
  loadSearch,
  loadPlay
} from '@/assets/js/cache'
const state = {
  singer: {},
  playing: false,
  fullScreen: false,
  // 播放列表
  playlist: [],
  // 顺序播放列表
  sequenceList: [],
  // 播放模式
  mode: playMode.sequence,
  // 当前播放的是哪首歌
  currentIndex: -1,
  // 歌单
  disc: {},
  // 排行榜
  topList: {},
  // 搜索历史
  searchHistory: loadSearch(),
  // 播放历史
  playHistory: loadPlay()
}
export default state